package cn.sccdlg.spring5aop.service.impl;

import cn.sccdlg.spring5aop.service.IAccountService;

/**
 * @author RaoShuang
 * @emil 991207823@qq.com
 * @date 2020/10/20 22:11
 * 模拟 账户的业务层实现类
 */
public class AccountServiceImpl implements IAccountService {

    @Override
    public void saveAccount() {
        System.out.println("执行了保存");
        //配置模拟发生异常，走异常通知类型
//        int i = 1 / 0;
    }

    @Override
    public void updateAccount(int i) {
        System.out.println("执行了更新 " + i + "次");

    }

    @Override
    public int deleteAccount() {
        System.out.println("执行了删除");
        return 0;
    }
}
